package com.ler.yrmall.basic;

import lombok.Data;

import java.io.Serializable;

/**
 * @author Leron
 * @version 1.0
 */
@Data
public class BaseRequest implements Serializable {

    private Long pageNo = 1L;

    private Long pageSize = 10L;

    /**
     * 搜索关键字
     */
    private String keyword;

    /**
     * 状态
     */
    private Integer status;

    public Form request2Form() {
        Form form = new Form();
        form.setPageNo(this.getPageNo());
        form.setPageSize(this.getPageSize());
        form.setKeyword(this.getKeyword());
        form.setStatus(this.getStatus());
        return form;
    }
}
